.class public Lcom/instagram/android/people/b/r;
.super Lcom/instagram/e/b/b;
.source "PhotosOfYouOptionsFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private a:Lcom/instagram/android/widget/IndeterminateCheckBox;

.field private b:Lcom/instagram/android/widget/IndeterminateCheckBox;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 32
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 154
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/people/b/r;)Lcom/instagram/android/widget/IndeterminateCheckBox;
    .locals 1
    .parameter

    .prologue
    .line 32
    iget-object v0, p0, Lcom/instagram/android/people/b/r;->a:Lcom/instagram/android/widget/IndeterminateCheckBox;

    return-object v0
.end method

.method private a(Lcom/instagram/android/d/e/w;)V
    .locals 5
    .parameter

    .prologue
    const/4 v1, 0x1

    .line 115
    sget-object v0, Lcom/instagram/android/d/e/w;->a:Lcom/instagram/android/d/e/w;

    if-ne p1, v0, :cond_0

    .line 116
    iget-object v0, p0, Lcom/instagram/android/people/b/r;->b:Lcom/instagram/android/widget/IndeterminateCheckBox;

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/IndeterminateCheckBox;->setIndeterminate(Z)V

    .line 120
    :goto_0
    new-instance v0, Lcom/instagram/android/d/e/v;

    invoke-virtual {p0}, Lcom/instagram/android/people/b/r;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/people/b/r;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    new-instance v3, Lcom/instagram/android/people/b/w;

    const/4 v4, 0x0

    invoke-direct {v3, p0, v4}, Lcom/instagram/android/people/b/w;-><init>(Lcom/instagram/android/people/b/r;Lcom/instagram/android/people/b/s;)V

    invoke-direct {v0, v1, v2, p1, v3}, Lcom/instagram/android/d/e/v;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/e/w;Lcom/instagram/android/d/j/a;)V

    invoke-virtual {v0}, Lcom/instagram/android/d/e/v;->g()V

    .line 122
    return-void

    .line 118
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/people/b/r;->a:Lcom/instagram/android/widget/IndeterminateCheckBox;

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/IndeterminateCheckBox;->setIndeterminate(Z)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/people/b/r;Lcom/instagram/android/d/e/w;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 32
    invoke-direct {p0, p1}, Lcom/instagram/android/people/b/r;->a(Lcom/instagram/android/d/e/w;)V

    return-void
.end method

.method static synthetic b(Lcom/instagram/android/people/b/r;)Lcom/instagram/android/widget/IndeterminateCheckBox;
    .locals 1
    .parameter

    .prologue
    .line 32
    iget-object v0, p0, Lcom/instagram/android/people/b/r;->b:Lcom/instagram/android/widget/IndeterminateCheckBox;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 48
    sget v0, Lcom/facebook/ax;->fragment_user_tag_options:I

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    .line 50
    sget v0, Lcom/facebook/aw;->checkbox_add_automatically:I

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/IndeterminateCheckBox;

    iput-object v0, p0, Lcom/instagram/android/people/b/r;->a:Lcom/instagram/android/widget/IndeterminateCheckBox;

    .line 52
    sget v0, Lcom/facebook/aw;->container_add_automatically:I

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v3, Lcom/instagram/android/people/b/s;

    invoke-direct {v3, p0}, Lcom/instagram/android/people/b/s;-><init>(Lcom/instagram/android/people/b/r;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 62
    sget v0, Lcom/facebook/aw;->checkbox_add_manually:I

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/IndeterminateCheckBox;

    iput-object v0, p0, Lcom/instagram/android/people/b/r;->b:Lcom/instagram/android/widget/IndeterminateCheckBox;

    .line 63
    sget v0, Lcom/facebook/aw;->container_add_manually:I

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v3, Lcom/instagram/android/people/b/t;

    invoke-direct {v3, p0}, Lcom/instagram/android/people/b/t;-><init>(Lcom/instagram/android/people/b/r;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 73
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->m()Z

    move-result v3

    .line 74
    iget-object v4, p0, Lcom/instagram/android/people/b/r;->a:Lcom/instagram/android/widget/IndeterminateCheckBox;

    if-nez v3, :cond_0

    const/4 v0, 0x1

    :goto_0
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v4, v0}, Lcom/instagram/android/widget/IndeterminateCheckBox;->setChecked(Ljava/lang/Boolean;)V

    .line 75
    iget-object v0, p0, Lcom/instagram/android/people/b/r;->b:Lcom/instagram/android/widget/IndeterminateCheckBox;

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/IndeterminateCheckBox;->setChecked(Ljava/lang/Boolean;)V

    .line 77
    return-object v2

    :cond_0
    move v0, v1

    .line 74
    goto :goto_0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 126
    new-instance v0, Lcom/instagram/android/people/b/v;

    invoke-direct {v0, p0}, Lcom/instagram/android/people/b/v;-><init>(Lcom/instagram/android/people/b/r;)V

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 0
    .parameter

    .prologue
    .line 42
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 43
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 176
    const-string v0, "photos_of_you_options"

    return-object v0
.end method

.method public g_()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 109
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 110
    iput-object v0, p0, Lcom/instagram/android/people/b/r;->a:Lcom/instagram/android/widget/IndeterminateCheckBox;

    .line 111
    iput-object v0, p0, Lcom/instagram/android/people/b/r;->b:Lcom/instagram/android/widget/IndeterminateCheckBox;

    .line 112
    return-void
.end method

.method public w()V
    .locals 6

    .prologue
    .line 82
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 85
    invoke-virtual {p0}, Lcom/instagram/android/people/b/r;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->learn_more_photos_of_you:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 88
    sget v1, Lcom/facebook/ba;->people_tagging_learn_more_photos:I

    invoke-virtual {p0, v1}, Lcom/instagram/android/people/b/r;->a(I)Ljava/lang/CharSequence;

    move-result-object v1

    .line 90
    new-instance v2, Landroid/text/SpannableString;

    invoke-direct {v2, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 91
    new-instance v3, Lcom/instagram/android/people/b/u;

    invoke-direct {v3, p0}, Lcom/instagram/android/people/b/u;-><init>(Lcom/instagram/android/people/b/r;)V

    const/4 v4, 0x0

    invoke-interface {v1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    const/16 v5, 0x21

    invoke-virtual {v2, v3, v4, v1, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 103
    invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 104
    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 105
    return-void
.end method
